package com.gouaixin.bee.beeframework2.tool;

/**
 * Created by Administrator on 2015/3/20.
 */
//Log日志工具类
public class mLog {

    private static String LogTag="Demo";//log标签
    private static boolean LogFlag=true;//log开关

    public static boolean isLogFlag() {
        return LogFlag;
    }

    public static void setLogFlag(boolean logFlag) {
        LogFlag = logFlag;
    }

    public static String getLogTag() {
        return LogTag;
    }

    public static void setLogTag(String logTag) {
        LogTag = logTag;
    }


    public static void v(String msg) {
        if(LogFlag){
            android.util.Log.v(LogTag, msg);
        }
    }

    public static void d(String msg) {
        if(LogFlag){
            android.util.Log.d(LogTag, msg);
        }
    }

    public static void i(String msg) {
        if(LogFlag){
            android.util.Log.i(LogTag, msg);
        }
    }

    public static void w(String msg) {
        if(LogFlag){
            android.util.Log.w(LogTag, msg);
        }
    }

    public static void e(String msg) {
        if(LogFlag){
            android.util.Log.e(LogTag, msg);
        }
    }

}
